package com.sidianzhong.sdz.service;

import com.sidianzhong.sdz.mapper.MyTeamMapper;
import com.sidianzhong.sdz.model.*;
import com.sidianzhong.sdz.utils.PageInfo;
import com.alibaba.fastjson.JSONObject;
import java.util.List;

/**
* Created by hxgqh on 2016/1/7.
*/
public interface MyTeamService {

    MyTeam create(MyTeam item);

    int delete(Integer id);

    int update(MyTeam item);

    MyTeam get(Integer id);

    PageInfo<MyTeam> getListWithPaging(Integer pageNum, Integer pageSize,
                                       String sortItem, String sortOrder, MyTeam item);

    List<MyTeam> getList(Integer pageNum, Integer pageSize,
                         String sortItem, String sortOrder, MyTeam item);

    PageInfo<JSONObject> getListWithObject(Integer pageNum, Integer pageSize,
                                           String sortItem, String sortOrder, MyTeam item);

    MyTeam getByUserId(Integer investId,Integer userId);
}
